package wjh.mapper;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import wjh.pojo.Patient;

@Repository
public interface ZlyPatientMapper {

    @Select("select * from patient where name = #{value}")
    Patient findByName(String pname);

    @Select("select * from patient where id = #{value}")
    Patient findById(Integer pid);
}
